package com.allwees.bs.module.ics.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.allwees.bs.core.modelbase.entity.BaseEntity;
import com.allwees.bs.module.ics.constant.EPostType;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import java.util.Date;

/**
 * 网红帖子信息
 *
 * @author yangylsky
 * @since 2020-05-15
 *
 */
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("ics_post")
public class IcsPost extends BaseEntity {
    @Column(length = 48)
    protected String icUuid;

    @Column(length = 48)
    protected String title;

    @Column(columnDefinition = " text")
    protected String description;

    @Column(length = 2048)
    protected String link;

    protected String img;

    /**
     * 帖子类型
     */
    protected EPostType postType;

    @Temporal(TemporalType.TIMESTAMP)
    protected Date postAt;

    @Column(length = 512)
    protected String nicheUuids;

    @Column(length = 512)
    protected String nichesStr;

    protected String tagsStr;

	protected Integer followers;

	protected Integer views;

	protected Integer likes;

	protected Integer dislikes;

	protected Integer comments;
}
